package com.ehome.poct.base.dao.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.BaseEntityOld;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 分销组织关系表
 */
@ApiModel(value = "分销组织关系表")
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@TableName(value = "term_agent_org")
public class TermAgentOrgDO extends BaseEntityOld<TermAgentOrgDO> {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private Long id;

    /**
     * Name
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "Name")
    private String name;

    /**
     * 级别
     */
    @TableField(value = "`level`")
    @ApiModelProperty(value = "级别")
    private Byte level;

    /**
     * 地总ID
     */
    @TableField(value = "city_agent_id")
    @ApiModelProperty(value = "地总ID")
    private Long cityAgentId;

    /**
     * 地总Name
     */
    @TableField(value = "city_agent_name")
    @ApiModelProperty(value = "地总Name")
    private String cityAgentName;

    /**
     * 省总ID
     */
    @TableField(value = "province_agent_id")
    @ApiModelProperty(value = "省总ID")
    private Long provinceAgentId;

    /**
     * 省总Name
     */
    @TableField(value = "province_agent_name")
    @ApiModelProperty(value = "省总Name")
    private String provinceAgentName;

    /**
     * 事业部ID
     */
    @TableField(value = "division_agent_id")
    @ApiModelProperty(value = "事业部ID")
    private Long divisionAgentId;

    /**
     * 事业部Name
     */
    @TableField(value = "division_agent_name")
    @ApiModelProperty(value = "事业部Name")
    private String divisionAgentName;
}